package demo3;

import java.util.ArrayList;
import java.util.List;

public class Text {


    public static void main(String[] args) {
        CardGame cardGame = new CardGame();
        List<Card> brands1 = cardGame.brand();
        System.out.println(brands1);
        List<Card> brands2 = cardGame.shuffle(brands1);
        System.out.println(brands2);
        List<Card> head1 = new ArrayList<>();
        List<Card> head2 = new ArrayList<>();
        List<Card> head3 = new ArrayList<>();
        List<List<Card>> heads = new ArrayList<>();
        heads.add(head1);
        heads.add(head2);
        heads.add(head3);
        for(int i = 0 ; i < 5 ; i++){
            for(int j = 0 ; j < 3 ; j++){
                heads.get(j).add(brands2.get(0));
                brands2.remove(0);
            }
        }
        System.out.println(heads);
    }
}
